package node;

        import java.util.function.Consumer;

public class MyNodeTest {
    public static void main(String[] args) {
        MyNode myNode = new MyNode();
        myNode.addRight(5)
                .addRight(2)
                .addRight(3)
                .addRight(1)
                .addRight(6);

        myNode.getAll(node -> System.out.println(node.value));
    }
}
